// Base

// The base font-size is set at 625% for having the convenience
html, body{
  height: 100%;
}
html {
  box-sizing: border-box;
  font-size: 625%;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
input[type="text"], input[type="number"], input[type="password"], textarea{
  -webkit-appearance: none;
}
// Default body styles
body {
  color: $color-global;
  font-family: $body-font-family;
  font-size: $body-font-size;
  background-color: #fffef2;
}

// Set box-sizing globally to handle padding and border widths
*,
*:after,
*:before {
  box-sizing: inherit;
}

// reset default styles
body, ol, ul, dl, li, dt, dd{
  margin: 0;
  padding: 0;
  list-style: none;
}
img, video{
  width: 100%;
  height: auto;
}
img{
  border: none;
  vertical-align: top;
}
a{
  border: none;
  text-decoration: none;
  color: $color-global;
}
table{
  border-collapse: collapse;
  border-spacing: 0;
}
:focus{
  outline: none;
}
// Global
h1{
  font-size: $h1-font;
}
.align-left{
  text-align: left;
}
.align-right{
  text-align: right;
}
.align-center{
  text-align: center;
}
.highlight{
   color: $color-highlight !important;
}
//sprite
.icon-sprite{
  display: inline-block;
  vertical-align: middle;
}
.icon-menu{
  @include sprite(icon-menu);
}
.icon-close{
  @include sprite(icon-close);
}
.icon-captain{
  @include sprite(icon-captain);
}
.icon-success{
  @include sprite(icon-success);
}
.icon-count{
  @include sprite(icon-count);
}
.icon-note{
  @include sprite(icon-note);
}
.icon-number{
  @include sprite(icon-number);
}
.icon-none{
  @include sprite(icon-none);
}
.button{
  border-radius: 0.03rem;
  display: block;
  width: 100%;
  line-height: 0.4rem;
  text-align: center;
  font-size: 0.16rem;
}
.button-red{
  background-color: $color-red;
  color: #fff;
}
.button-grey{
  background-color: #e6e6e6;
  color: $color-global;
}
header{
  margin-left: -$outer-margin;
  margin-right: -$outer-margin;
}
//footer
footer{
  background-color: rgba(255, 255, 255, 0.9);
  position: fixed;
  z-index: 999;
  padding: 0.1rem;
  left: 0;
  bottom: 0;
  width: 100%;
  box-shadow: 0 0 0.05rem $color-border-gray;
  li{
    span{
      color: $color-red;
    }
    &:nth-child(2){
      color: $color-gray;
    }
  }
  .menu{
    position: absolute;
    top: -0.1rem;
    right: 0.05rem;
    height: 0.62rem;
    width: 0.62rem;
  }
}
.pop-menu{
  position: fixed;
  z-index: 998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  ul{
    background-color: #fff;
    border-radius: 0.05rem;
    text-align: center;
    width: 1.5rem;
    padding: 0.1rem 0;
    line-height: 0.35rem;
    position: absolute;
    right: 0.1rem;
    bottom: 0.9rem;
    &:after{
      position: absolute;
      right: 0.2rem;
      bottom: -0.05rem;
      border-left: 0.06rem solid transparent;
      border-right: 0.06rem solid transparent;
      border-top: 0.06rem solid #fff;
      content: '';
    }
  }
}
.swiper-container {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
  .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
    transform: translate3d(0px, 0, 0);
    .swiper-slide {
      -webkit-flex-shrink: 0;
      -ms-flex: 0 0 auto;
      flex-shrink: 0;
      height: 100%;
      position: relative;
    }
  }
  .swiper-pagination{
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    bottom: 0.1rem;
    z-index: 88;
    span{
      height: 0.1rem;
      width: 0.1rem;
      border-radius: 50%;
      background-color: #fff;
      display: inline-block;
      margin: 0 0.05rem;
      &.swiper-pagination-bullet-active{
        background-color: $color-red;
      }
    }
  }
}